package sms.entity;

import jakarta.persistence.Id;
import jakarta.persistence.JoinColumn;
import jakarta.persistence.ManyToOne;
import lombok.Data;

import java.math.BigDecimal;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Data
public class Score {
    @Id
    private Integer id;
    private Integer studentId;
    private String classId;
    private String courseId;
    private BigDecimal score;
    private String scoreStatus; // 'unrecorded','recorded','submitted'
    @ManyToOne
    @JoinColumn(name = "student_id")
    private Student_info student; // 关联学生
    @ManyToOne
    @JoinColumn(name = "class_info_id")
    private Class classInfo;    // 关联班级
    @ManyToOne
    @JoinColumn(name = "course_id")
    private Course course;     // 关联课程
}
